/*
 * Timer.cpp
 *
 * Created: 2012-05-16 09:44:02
 *  Author: Johan
 */
#include "Timer.h"
	
Timer::Timer(){
	DDRE |= (1<<PE3)|(1<<PE4)|(1<<PE5);
		
	//Mode 10 page 138
	//PWM, Phase Correct
	TCCR3A = (1<<COM3A1)|(0<<COM3A0)|(1<<COM3B1)|(0<<COM3B0)|(1<<COM3C1)|(0<<COM3C0)|(1<<WGM31)|(0<<WGM30);
	TCCR3B = (1<<WGM33)|(0<<WGM32)|(0<<CS32)|(1<<CS31)|(0<<CS30); //Prescaler
		
}
	
void Timer::start(){
	
}
	
int Timer::stop(){
		
	return getTime();
}
	
int Timer::getTime(){
	
}
